import {searchSpan} from "@/api/span";

export const optionParent = {
  calcHeight: 95,
  tip: false,
  searchShow: true,
  searchMenuSpan: searchSpan(2),
  border: true,
  index: true,
  viewBtn: false,
  menuWidth: 150,
  labelWidth:120,
  dialogWidth: 880,
  dialogClickModal: false,
  selection:true,
  menu:false,
  addBtn: false,
  delBtn:false,
  editBtn:false,
  column: [
    {
      label:'拆包单号',
      prop:'unpackNo',
      search:true,
    },
    {
      label:'物料编码',
      prop:'materialNo',
      search: true,
    },
    {
      label:'物料名称',
      prop:'materialName'
    },
    {
      label:'规格',
      prop:'materialSpec'
    },
    {
      label:'型号',
      prop:'materialModel'
    },
    {
      label:'原箱编号',
      prop:'originNo'
    },
    {
      label:'原箱数量',
      prop:'originNum'
    },
    {
      label:'拆包箱数',
      prop:'unpackNum'
    },
    {
      label:'入库单号',
      prop:'inputNo'
    },
    {
      label:'拆包人员',
      prop:'unpackUser'
    },
    {
      label:'拆包时间',
      prop:'unpackTime',
      width:150,
    },

    {
      label:'备注',
      prop:'remark'
    }
  ]

};

export const optionChild = {
  calcHeight: 95,
  tip: false,
  searchShow: true,
  tree: true,
  border: true,
  index: true,
  viewBtn: true,
  menuWidth: 220,
  dialogWidth: 880,
  dialogClickModal: false,
  selection:true,
  menu:false,
  addBtn:false,
  column: [
    {
      label:'箱单编码',
      prop:'boxCode'
    },
    {
      label:'生产日期',
      prop:'productDate',
    },
    {
      label:'生产批次',
      prop:'productBatch',
    },
    {
      label:'标箱数量',
      prop:'boxNum'
    },
    {
      label:'装箱数量',
      prop:'realNum'
    },

    {
      label:'库存周期',
      prop:'inventoryType',
      dicData: [
        {
          label: '发货在途',
          value: 0
        },
        {
          label: '等待上架',
          value: 1
        }, {
          label: '正常上架',
          value: 2
        }, {
          label: '等待下架',
          value: 3
        }, {
          label: '出库完成',
          value: 4
        },{
          label: '来料退回',
          value: 5
        },{
          label: '空',
          value: -1
        }
      ]
    },
    {
      label:'存储位置',
      prop:'locCode'
    },     {
      label:'质量状态',
      prop:'qualityStatus',
      dicData:[{
        label:'合格',
        value:1
      },
        {
          label:'不良',
          value:0
        }]
    },
  ]
};
